package com.bw.xiaosy.shiro;

/**
 * Created by xiaosy on 2017/3/21.
 */
public enum AuthorizationStatus {
    NOT_LOGIN(401,"UnAuthenticationException","没有登录"),
    NOT_AUTHORIZATION(403,"UnAuthentizationException","没有授权")
    ;

    private Integer code;

    private String exception;

    private String msg;

    AuthorizationStatus(Integer code, String exception,String msg) {
        this.code = code;
        this.exception = exception;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }
}
